package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.ruoyi.system.domain.SysTraining;
import com.ruoyi.system.domain.param.SysTrainingPageParam;
import com.ruoyi.system.domain.vo.SysTrainingVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 *@title ISysShopMapper
 *@description <TODO 培训管理——持久层>
 *@author 然子哥
 *@version 1.0.0
 *@create 2023/5/18 10:07
 **/
@Mapper
public interface SysTrainingMapper extends BaseMapper<SysTraining>
{

    /**
     * TODO 查询培训表中最大的一个id
     * @author 然子哥
     * @date 2023/5/24 11:18
     * @return java.lang.Integer
     */
    Integer selectMaxId();

    IPage<SysTrainingVo> selectTrainingPage(@Param("page") Page<SysTrainingVo> page, @Param("param") SysTrainingPageParam param);

    List<String> selectFileName(@Param("projectId")Integer projectId,@Param("id")Integer id);

    SysTrainingVo selectBy(@Param("id")Integer id);

    List<SysTraining> getList();

}
